//文本预览
function senddata(inputobj) {
	var obj;
	obj = document.getElementById("Preview_content");
	obj.innerHTML = inputobj.value;
}
// 颜色预览
function check(color) {
	document.getElementById("Preview_note").style.backgroundColor = color;
}

// 剩余字数
function remainingWords(getDivId, setDivId, charWidth) {
	var text1 = document.getElementById(getDivId).value;
	var len;
	if (text1.length > charWidth) {
		len = 0;
	} else {
		len = charWidth - text1.length;
	}
	var show = "还可以输入" + len + "个字";
	document.getElementById(setDivId).innerHTML = show;
}